<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<% String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; %> 
<html>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<br/><br/><br/><a href='TbDispatchListServlet?method=showadd'><img src="./images/button-add.gif" border="0"/></a><br/>
<table>
<tr><td colspan="4">合同详细信息</td></tr>
<tr>
    <td>合同编号:</td><td><label>${sessionScope.tbContract.contractCode }</label></td>
    <td>合同名称:</td><td><label>${sessionScope.tbContract.contractName }</label></td>
</tr>
<tr>
    <td>合同状态:</td><td><label>${sessionScope.tbContract.contractState==0?'施工中':sessionScope.tbContract.contractState==1?'验收中':sessionScope.tbContract.contractState==2?'回款中':sessionScope.tbContract.contractState==3?'完工':sessionScope.tbContract.contractState==4?'整改中':'无' }</label></td>
    <td>合同价格:</td><td><label>${sessionScope.tbContract.contractPrice }</label></td>
</tr>
<tr>
    <td>${sessionScope.contractType==0?'供应商公司':'合作方公司' }:</td><td><label>${sessionScope.tbContract.tbCompany.companyName }</label></td>
    <td>${sessionScope.contractType==0?'供应商联系人':'合作方联系人' }:</td><td><label>${sessionScope.tbContract.companyContract }</label></td>
</tr>
<tr>
	<td>合同签订时间: </td><td><label>${sessionScope.tbContract.contractSignedTime }</label></td>
    <td>我方签订人:</td><td><label>${sessionScope.tbContract.ourCompanyUser }</label> </td>
</tr>
<tr>
	<td>合同有效期: </td><td><label>${sessionScope.tbContract.startDateSigned }至${sessionScope.tbContract.endDateSigned  }</label></td>
    <td>合同附件:</td><td><input type="button" value="dowload"/></td>
</tr>

<tr>
    <td>施工内容:</td><td colspan="3"><textarea rows="5" cols="100">${sessionScope.tbContract.contractContent }</textarea></td>
</tr>
<tr>
	<td>所属派单:</td>
	<td colspan="3"> 
		<c:forEach items="${sessionScope.tbDispatchListList}" var="tbDispatchList" varStatus="status">
		  <a href="TbDispatchListServlet?method=dispatchInfo&dispatchListId=${tbDispatchList.dispatchListId }"> ${tbDispatchList.dispatchListName }</a>、
	     </c:forEach>
    </td>
</tr>
</table>
<jsp:include page="../foot.jsp"></jsp:include>
</body>
</html>